package com.zhj.product.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.zhj.product.entity.pojo.ItemsImg;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.zhj.product.mapper.ItemsImgMapper;
import com.zhj.product.service.ItemsImgService;

import java.util.List;

@Service
public class ItemsImgServiceImpl implements ItemsImgService {

    @Resource
    private ItemsImgMapper itemsImgMapper;

    @Override
    public List<ItemsImg> selectImagesByItemId(String itemId) {
        LambdaQueryWrapper<ItemsImg> queryWrapper = new QueryWrapper<ItemsImg>().lambda().eq(ItemsImg::getItemId, itemId);
        return itemsImgMapper.selectList(queryWrapper);
    }
}
